package com.company.project.common.configuration;

//import com.company.project.common.intercepter.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 霍咨文 on 2019/5/8.
 * @version 1.0
 */

@Configuration
public class WebConfigurer implements WebMvcConfigurer {

    /**
     * 拦截器拦截对应请求
     * @param registry
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //添加自定义拦截器和拦截路径，此处对所有请求进行拦截，除了注册和登录接口
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/ycc-web/study");
               // .excludePathPatterns("/ycc-web/login", "/ycc-web/logon","/web/login.html","/web/zhuce.html",".js",".jpg","/web-manager/*");
    }

}
